package com.study.ssh.dao;

import java.util.List;

import org.hibernate.Session;
import org.hibernate.SessionFactory;

import com.study.ssh.model.Employee;

public class EmployeeDao extends BaseDao{
	
	public List<Employee> getAll() {
		
		String hql = "From Employee e LEFT OUTER JOIN FETCH e.department";
		return getSession().createQuery(hql).list();
	}
	
}
